<template>
  <div class="person">
    ???
  </div>
</template>



<script lang="ts" setup name="Person">
// import
import { type PersonInter,type Persons } from '@/types'

let person: PersonInter = { id: '3837', name: '好滴', age: 78 }
// let personList:Array<PersonInter> = [
//   { id: '3837', name: '好滴', age: 78 },
//   { id: '3837', name: '佛', age: 78 },
//   { id: '3837', name: '搞钱', age: 78 }
// ]
// 有自定义类型可以写成下面的
let personList:Persons = [
  { id: '3837', name: '好滴', age: 78 },
  { id: '3837', name: '佛', age: 78 },
  { id: '3837', name: '搞钱', age: 78 }
]






</script>

<style scoped>
.person {
  background-color: rgb(218, 114, 200);
  box-shadow: 0 010px;
  border-radius: 10px;
  padding: 20px;
}

button {
  background-color: darkseagreen;
  margin: 0 5px;
}

li {
  font-size: 20px;
}
</style>